package com.juyu.miliao.api.controller;

import com.juyu.miliao.api.domain.RecommendNotice;
import com.juyu.miliao.api.service.NoticeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 公告栏
 */
@RestController()
@RequestMapping("/notice")
public class NoticeController {
    @Resource
    NoticeService noticeService;

    @GetMapping()
    public List<RecommendNotice> getNoticeList(HttpServletRequest request){
        return noticeService.getNoticeList(request);
    }

}
